package com.itheima;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author Gareth Cao
 * @date 2022/4/25 14:36
 */
@ServletComponentScan //扫描web三大组件servlet filter listener
@MapperScan("com.itheima.dao")
@SpringBootApplication //引导类,启动类
@Slf4j
@EnableTransactionManagement //开启事务管理
@EnableCaching //开启缓存注解功能
public class Project01ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(Project01ReggieApplication.class, args);
        log.info("springboot启动了");
    }
}
